﻿using Yarp.ReverseProxy.Configuration;

namespace ProxyServer.Entities;

public class ProxyConfigSnapshotEntity(Guid id, List<ClusterConfig> clusters, List<RouteConfig> routes, DateTimeOffset appliedAt)
{
    public Guid Id { get; set; } = id;
    public List<ClusterConfig> Clusters { get; set; } = clusters;
    public List<RouteConfig> Routes { get; set; } = routes;
    public DateTimeOffset AppliedAt { get; set; } = appliedAt;
    public DateTimeOffset? RemovedAt { get; set; }
}
